# vim: ft=python
{
  'targets': [
    {
      'target_name': 'libprotoserv-compiler-java',
      'type': 'static_library',
      'include_dirs': [
        'src',
      ],
      'dependencies': [
        '<(DEPTH)/<(THIRD_PARTY)/protobuf/build.gyp:libprotoc',
        '<(DEPTH)/common/plugin/build.gyp:libprotoserv-descriptors',
      ],
      'export_dependent_settings': [
        '<(DEPTH)/<(THIRD_PARTY)/protobuf/build.gyp:libprotoc',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          'src',
        ],
      },
      'sources': [
        'src/protoserv/compiler/java/java_file.cc',
        'src/protoserv/compiler/java/java_file.h',
        'src/protoserv/compiler/java/java_generator.cc',
        'src/protoserv/compiler/java/java_generator.h',
        'src/protoserv/compiler/java/java_helpers.cc',
        'src/protoserv/compiler/java/java_helpers.h',
        'src/protoserv/compiler/java/java_service_interface.cc',
        'src/protoserv/compiler/java/java_service_interface.h',
        'src/protoserv/compiler/java/java_service_skeleton.cc',
        'src/protoserv/compiler/java/java_service_skeleton.h',
        'src/protoserv/compiler/java/java_service_stub.cc',
        'src/protoserv/compiler/java/java_service_stub.h',
      ],
    },
    {
      'target_name': 'protoc-gen-java_rpc',
      'type': 'executable',
      'cflags': [ '-O2', '-Os', '-Wall' ],
      'include_dirs': [
        'src',
      ],
      'dependencies': [
        '<(DEPTH)/<(THIRD_PARTY)/protobuf/build.gyp:libprotoc',
        '<(DEPTH)/common/plugin/build.gyp:libprotoserv-rpc-plugin',
        'libprotoserv-compiler-java',
      ],
      'sources': [
        'src/protoserv/compiler/java/java_plugin_main.cc',
      ],
    },
  ],
}
